package main

import "fmt"

//性能操作字符串
func main() {
	//替换字符串的某个字节
	str := "hello"
	strs := []byte(str)
	strs[0] = 'c'
	fmt.Println(string(strs))

	//获取字符串的字串
	substr := str[0:len(str)]
	fmt.Println(substr)

}
